<?php
	#Recebe a página que define a que incluirá:		
		  
	$pagina = @$_GET["page"];		
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>D & R Solutions - Automação Industrial</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="style.css">
<script type="text/javascript">
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
</script>
<!-- 
Jquery
-->
<script language="JavaScript" src="jquery/jquery-1.6.4.js" type="text/javascript"></script>
<script language="JavaScript" src="jquery/jquery.cycle.all.js" type="text/javascript"></script>
</head>

<script type="text/javascript">
    $(document).ready(function() {
        $('#slideshow').cycle({
            fx:'fade',
			pause: 1,
            speed: 500
        });
    });
</script>


<body onload="MM_preloadImages('images/layout_0662.png','images/layout_082.png','images/layout_102.png','images/layout_122.png')">

<div id="menusuper">
	<table width="100%" style="background-image:url(images/backtop.png); background-repeat:repeat-x; height:22px;">
		<tr>
        	<td width="160px"></td>
            <td><a href="http://www.dersolutions.com.br" class="classe">www.dersolutions.com.br</a></td>
          <td width="460px"></td>
            <td><a href="#" class="classe">webmail</a>    |    <a href="mailto:contato@dersolutions.com.br?Subject=Contato de Cliente" class="classe">contato@dersolutions.com.br</a></td>
          <td width="60px"></td>
		</tr>
	</table>
</div>

<div id="logo">
	<a href="?page=home.php"><img src="img/logoalt2.png" width="220px" height="190px" border="0"></a>

</div>

<div id="containermeio">


<!-- Save for Web Slices (layout.psd) -->
<table id="Table_01" width="949" height="637" border="0" cellpadding="0" cellspacing="0" align="center">
	<tr>
		<td rowspan="2">
			<img src="images/layout_01.png" width="359" height="129" alt=""></td>
		<td colspan="10" style="background-image:url(images/fundojquery.png); background-repeat:no-repeat; width:544; height:115px;">
        	<div id="slideshow">
            <img src="images/banner1.png" width="544" height="110" alt="">
			<img src="images/banner2.png" width="544" height="110" alt="">	
            </div>
            </td>
		
		<td rowspan="2">
			<img src="images/layout_04.png" width="45" height="129" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="1" height="115" alt=""></td>
	</tr>
	<tr>
		<td rowspan="3">
			<img src="images/layout_05.png" width="35" height="47" alt=""></td>
		<td rowspan="3">
			<a href="?page=home.php"><img src="images/layout_066.png" alt="" width="98" height="47" border="0" id="home" onmouseover="MM_swapImage('home','','images/layout_0662.png',1)" onmouseout="MM_swapImgRestore()" ></a></td>
		<td rowspan="3">
			<img src="images/layout_07.png" width="2" height="47" alt=""></td>
		<td rowspan="3">
	    <a href="?page=clientes.php"><img src="images/layout_08.png" alt="" width="128" height="47" id="clientes" onmouseover="MM_swapImage('clientes','','images/layout_082.png',1)" onmouseout="MM_swapImgRestore()" border="0"></a></td>
		<td rowspan="3">
			<img src="images/layout_09.png" width="2" height="47" alt=""></td>
		<td colspan="2" rowspan="3">
	    <a href="?page=servicos.php"><img src="images/layout_10.png" alt="" width="128" height="47" id="servico" onmouseover="MM_swapImage('servico','','images/layout_102.png',1)" onmouseout="MM_swapImgRestore()" border="0" ></a></td>
		<td rowspan="3">
			<img src="images/layout_11.png" width="3" height="47" alt=""></td>
		<td rowspan="3">
	    <a href="?page=contatos.php"><img src="images/layout_12.png" alt="" width="116" height="47" id="contato" onmouseover="MM_swapImage('contato','','images/layout_122.png',1)" onmouseout="MM_swapImgRestore()" border="0" ></a></td>
		<td rowspan="3">
			<img src="images/layout_13.png" width="32" height="47" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="1" height="14" alt=""></td>
	</tr>
	<tr>
		<td>
			<img src="images/layout_14.png" width="359" height="23" alt=""></td>
		<td rowspan="3">
			<img src="images/layout_15.png" width="45" height="36" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="1" height="23" alt=""></td>
	</tr>
	<tr>
		<td rowspan="2">
			<img src="images/layout_16.gif" width="359" height="13" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="1" height="10" alt=""></td>
	</tr>
	<tr>
		<td colspan="10">
			<img src="images/layout_17.gif" width="544" height="3" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="1" height="3" alt=""></td>
	</tr>
	<tr>
		<td colspan="12" style="background-image:url(images/fundo_meio.png); background-repeat:no-repeat;" valign="top">
       
       <table>
       		<tr>
            <td style="padding-top:50px;">
<!-- Construção do home [conteúdo do meio do site] -->            
            <?php 
			  #A Pagina que aparecerá sempre no inicio:
			if($pagina=="")
				include("home.php");  
			elseif($pagina=="home.php")
				include("home.php");
			elseif($pagina=="clientes.php")
			  	include("clientes.php");
			elseif($pagina=="servicos.php")
				include("servicos.php");
			elseif($pagina=="contatos.php")
				include("contatos.php");
			elseif($pagina=="empresa.php")
				include("empresa.php");
			elseif($pagina=="automacao.php")
				include("automacao.php");
			else
				echo "Página não encontrada, navegue no menu acima.";						
			?>
            
<!-- Fim do meio do site -->            
            </td>
            </tr>
       </table>
		</td>
		<td>
			<img src="images/spacer.gif" width="1" height="471" alt=""></td>
	</tr>
	<tr>
		<td>
			<img src="images/spacer.gif" width="359" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="35" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="98" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="2" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="128" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="2" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="21" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="107" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="3" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="116" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="32" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="45" height="1" alt=""></td>
		<td></td>
	</tr>
</table>

</div>
<div id="footer">

	<table width="100%" style="background-image:url(images/backfooter.png); background-repeat:repeat-x; height:100px;" border="0">
    	<tr>
            <td>
		<table border="0" style="padding-left:200px; padding-top:20px; padding-bottom:10px;" cellspacing="0">		            
        	<th rowspan="6" width="20px">
            
            </th>
            <tr>
            	<td style="color:#003366; font-family:Tahoma; font-size:13px;">
                <a href="#" class="classe">HOME</a>
                </td>
                
                <th rowspan="6" width="100px" align="center">
                	|<br />|<br />|<br />|<br />|<br />|<br />|<br />|<br />|<br />
                </th>
                <th rowspan="6">
                <table border="0">
                	<tr>
                    	<td style="color:#003366; font-family:Tahoma; font-size:13px;"><a href="#" class="classe">CONTATOS</a></td>
                        <th rowspan="6" width="100px" align="center">
                	|<br />|<br />|<br />|<br />|<br />|<br />|<br />|<br />|<br />
                		</th>
                        <th rowspan="6" width="400px">
                      		  <table border="0">
                                  <th rowspan="4" width="80px">
                                  
                                  </th>
                                  <tr>
                                  
                                      <td style="color:#003366; font-family:Tahoma; font-size:13px; width:200px;">
                                       <a href="#" class="classe">CLIENTES</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#" class="classe">PARCEIROS</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#" class="classe">A EMPRESA</a>
                                      </td>
                                  </tr>
                                  <tr>
                                      <td style="width:400px;">
                                        Este site é de propriedade exclusiva da D & R Solutions - 2012<BR /><BR />
                                       <a href="mailto:contato@dersolutions.com.br?Subject=Contato de Cliente" class="classe"> contato@dersolutions.com.br</a>
                                      </td>                             
                                  </tr>
                              </table>
                    	</th>
                    </tr>
                    <tr>
                    	<td><a href="#" class="linkmenor">Endereço</a></td>
                    
                    </tr>
                    <tr>
                    	<td><a href="#" class="linkmenor">Webmail</a></td>
                    
                    </tr>
                    <tr>
                    	<td><a href="#" class="linkmenor">Quem Somos</a></td>
                    
                    </tr>
                    <tr>
                    	<td><a href="mailto:contato@dersolutions.com.br?Subject=Contato de Cliente" class="linkmenor">Envie-nos um email</a></td>
                    	
                    </tr>
                     
                </table>
                </th>     
            </tr>
            
            <tr>
            	<td><a href="#" class="linkmenor">Clientes</a></td>
                
            </tr>
            <tr>
            	<td><a href="#" class="linkmenor">Serviços</a></td>
            </tr>
            <tr>
            	<td><a href="#" class="linkmenor">Parceiros</a></td>
            </tr>
            <tr>
            	<td><a href="#" class="linkmenor">Projetos</a></td>
            </tr>
            
        </table>
            </td>
    	</tr>
        <tr>
			<td style="font-family:Tahoma; font-size:12px; color:#000; font-weight:bold; text-align:center; ">
            Copyright ® 2012 - Todos os direitos reservados a D & R Solutions
            
            </td>

        </tr>
    </table>
    
</div>

<!-- End Save for Web Slices -->
</body>
</html>